<%@ page pageEncoding="UTF-8"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/frame.js"></script>
<html>
	<body>
		<div id="head">
			<div class="logo">
				<div></div>
			</div>
			<div class="submenu">
				<ul>
					<li class="home">
						<a href="#" onClick="fristpage()">首页</a>
					</li>
					<li class="help">
						<a href="#" onClick="help()">修改密码</a>
					</li>
					<li class="layout">
						<a href="#" onClick="exit()">退出</a>
					</li>
				</ul>
			</div>
			<div class="submenu2"></div>
			<div class="loginfo">
				<div>
					您好,
					<span>${user.username}</span> 上一次登陆时间:
					
				</div>
			</div>

			<div class="timer" id="webjx"></div>
			<script>
				function fristpage(){
					document.getElementById("rightframe").src="${pageContext.request.contextPath}//wellcom.action";
				}
				
				function help(){
					document.getElementById("rightframe").src="${pageContext.request.contextPath}/pages/changePassWord.jsp";
				}
				
				function exit(){
					if(confirm("确定退出?")){
					window.location.href="logout.action";
					}
				}
		
				function thistime(){
					var today = new Date();
					var month = today.getMonth()+1;
					var timestr=today.getFullYear() +'-'+month  +'-'+ today.getDate() +" "+ today.getHours() +":"+ today.getMinutes() +":"+ today.getSeconds();
					webjx.innerHTML= timestr +' 星期'+'日一二三四五六'.charAt(new Date().getDay());
				}
				setInterval(thistime,1000);
		</script>
		</div>
		<div id="content">
			<div id="left">
				<div class="sidebar">
					<div class="sidebar_top">
						<a href="javascript:" onClick="switchSysBar()" class="swtich_left"
							id="swtich_left" title="关闭菜单栏"></a>
					</div>
					<!-- side-nav start -->
					<div class="side-nav">
						<c:forEach var="m1" items="${menulist}">
							<a href="#none" onFocus="this.blur()" class="btn-sideNav">${m1.menuName}</a>
							<div class="sub-sideNav">
								<c:forEach var="m2" items="${m1.children}">
									<c:if test="${!empty m2.linkPage}">
										<a href="${pageContext.request.contextPath}/${m2.linkPage}"
											onFocus="this.blur()" target="rightframe" class="sub-item">${m2.menuName}</a>
									</c:if>

									<c:if test="${ empty m2.linkPage}">
										<a href="${pageContext.request.contextPath}/pages/404.jsp"
											onFocus="this.blur()" target="rightframe" class="sub-item">${m2.menuName}</a>
									</c:if>
								</c:forEach>
							</div>
						</c:forEach>
					</div>
					<!-- side-nav end -->
					<div class="sidebar_foot"></div>
				</div>
			</div>
			<div class="right" id="right" style="OVERFLOW: auto;">
				<iframe name="rightframe" id="rightframe" height="99.5%" width=100%"
					src="${pageContext.request.contextPath}/wellcom.action"
					frameborder="0" scrolling="no"></iframe>
			</div>
			<div class="clear"></div>
		</div>
		<div id="foot">
			<a href="javascript:" onClick="switchSysBar()" class="swtich_right"
				id="swtich_right" title="打开左边菜单栏"> </a>
			<span>Copyright ©2013 <A href="#"> </A> 浙江智能科技有限公司</span>
		</div>
	</body>
</html>

